package com.business.wechat.service;

import com.business.wechat.bean.WeixinConfigBean;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.service.WxPayService;

import me.chanjar.weixin.mp.api.WxMpConfigStorage;
import me.chanjar.weixin.mp.api.WxMpMessageRouter;
import me.chanjar.weixin.mp.api.WxMpService;

/**
 * 
 * @author fengjian
 * @date: 2018/06/22
 *
 */
public class WeixinService {

	/** 微信服务名 */
	private String weixinName = null;
	
	/** 微信公众号配置表 */
	private WeixinConfigBean wxConfigBean = null;

	/** 微信客户端配置存储 */
	private WxMpConfigStorage configStorage;

	/** 微信API的Service */
	private WxMpService mpService;

	/** 微信支付配置 */
	private WxPayConfig payConfig;

	/** 微信支付请求实现类，apache httpclient实现. */
	private WxPayService payService;

	/** 微信消息路由处理类 */
	private WxMpMessageRouter router = null;

	public String getWeixinName() {
		return weixinName;
	}

	public void setWeixinName(String weixinName) {
		this.weixinName = weixinName;
	}

	public WxMpConfigStorage getConfigStorage() {
		return configStorage;
	}

	public void setConfigStorage(WxMpConfigStorage configStorage) {
		this.configStorage = configStorage;
	}

	public WxMpService getMpService() {
		return mpService;
	}

	public void setMpService(WxMpService mpService) {
		this.mpService = mpService;
	}

	public WxPayConfig getPayConfig() {
		return payConfig;
	}

	public void setPayConfig(WxPayConfig payConfig) {
		this.payConfig = payConfig;
	}

	public WxPayService getPayService() {
		return payService;
	}

	public void setPayService(WxPayService payService) {
		this.payService = payService;
	}

	public WxMpMessageRouter getRouter() {
		return router;
	}

	public void setRouter(WxMpMessageRouter router) {
		this.router = router;
	}

	public WeixinConfigBean getWxConfigBean() {
		return wxConfigBean;
	}

	public void setWxConfigBean(WeixinConfigBean wxConfigBean) {
		this.wxConfigBean = wxConfigBean;
	}

}
